package net.lainiao.morethread.Chapter3.demo3;

/**
 * Created by Administrator on 2017/3/1.
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        //需要等待5个操作
        VideoConference videoConference=new VideoConference(5);
        Thread thread=new Thread(videoConference);
        thread.start();
        for (int i = 0; i < 5; i++) {
            Thread th=new Thread(new Participant(videoConference,"操作:"+(i+1)));
            th.start();
        }
    }
}
